package com.company.demo.bean;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.List;

//@Component
//@PropertySource("classpath:myapp.properties")
//@ConfigurationProperties("country")

public class Country {

    private List<String> cities;

    public List<String> getCities() {
        return cities;
    }

    public void setCities(List<String> cities) {
        this.cities = cities;
    }

    @Override
    public String toString() {
        return "Country{" +
                "cities=" + cities +
                '}';
    }
}
